package com.p2p.controller.loanManagement;

import com.p2p.common.R;
import io.swagger.annotations.*;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/investmentRecord")
@Api(value = "投资记录API",tags = "借贷管理的投资记录API")
public class InvestmentRecordController {

    /**
     * 投资记录分页显示
     * @param currentPage 当前页码数默认第一页
     * @param pageSize 每页显示记录数
     * @return R
     */
    @ApiOperation(value = "投资记录分页显示",notes = "投资记录分页显示",httpMethod = "GET", response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "currentPage",value = "当前页码数默认第一页",paramType = "query",dataType = "String",required = true),
            @ApiImplicitParam(name = "pageSize",value = "每页显示记录数",paramType = "query",dataType = "String",required = true)
    })
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @GetMapping(value = "/findInvestmentRecordList")
    @ResponseBody
    public R findInvestmentRecordList(Integer currentPage,Integer pageSize ){
        return null;
    }

    /**
     * 投资记录导出
     * @return R
     */
    @ApiOperation(value = "投资记录导出",notes = "投资记录导出",httpMethod = "GET", response = R.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @GetMapping(value = "/exportInvestmentRecord")
    @ResponseBody
    public R exportInvestmentRecord(){
        return null;
    }

    /**
     * 添加投资记录
     * @return R
     */
    @ApiOperation(value = "添加投资记录",notes = "添加投资记录",httpMethod = "GET", response = R.class)
@ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @GetMapping(value = "/addInvestmentRecord")
    @ResponseBody
    public R addInvestmentRecord(){
        return null;
    }

    /**
     * 根据条件查询投资记录
     * @param condition 查询条件
     * @param currentPage 当前页码数默认第一页
     * @param pageSize 每页显示记录数
     */
    @ApiOperation(value = "根据条件查询投资记录",notes = "根据条件查询投资记录",httpMethod = "GET", response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "condition",value = "查询条件",paramType = "query",dataType = "String",required = true),
            @ApiImplicitParam(name = "currentPage",value = "当前页码数默认第一页",paramType = "query",dataType = "String",required = true),
            @ApiImplicitParam(name = "pageSize",value = "每页显示记录数",paramType = "query",dataType = "String",required = true)
    })
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @GetMapping(value = "/findInvestmentRecordByCondition")
    @ResponseBody
    public R findInvestmentRecordByCondition(String condition,Integer currentPage,Integer pageSize){
        return null;
    }
    /**
     * 根据id查询投资记录
     * @param id 投资记录id
     * @return R
     */
    @ApiOperation(value = "根据id查询投资记录",notes = "根据id查询投资记录",httpMethod = "GET", response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id",value = "投资记录id",paramType = "query",dataType = "String",required = true)
    })
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @GetMapping(value = "/findInvestmentRecordById")
    @ResponseBody
    public R findInvestmentRecordById(Integer id){
        return null;
    }

    /**
     * 根据时间段查询投资记录
     * @param startTime 开始时间
     * @param endTime 结束时间
     * @param currentPage 当前页码数默认第一页
     * @param pageSize 每页显示记录数
     * @return R
     */
    @ApiOperation(value = "根据时间段查询投资记录",notes = "根据时间段查询投资记录",httpMethod = "GET", response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "startTime",value = "开始时间",paramType = "query",dataType = "String",required = true),
            @ApiImplicitParam(name = "endTime",value = "结束时间",paramType = "query",dataType = "String",required = true),
            @ApiImplicitParam(name = "currentPage",value = "当前页码数默认第一页",paramType = "query",dataType = "String",required = true),
            @ApiImplicitParam(name = "pageSize",value = "每页显示记录数",paramType = "query",dataType = "String",required = true)
    })
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @GetMapping(value = "/findInvestmentRecordByTime")
    @ResponseBody
    public R findInvestmentRecordByTime(String startTime,String endTime,Integer currentPage,Integer pageSize){
        return null;
    }



}
